-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: remove unused and useless code #717
base: main
Are you sure you want to change the base?
Conversation
DanielSchiavini
commented
Feb 28, 2025
•
edited
Loading
edited
- remove unused code
- simplify useless code
- remove useless comments
- remove global react imports
- remove empty lines in import statements
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -43,16 +43,6 @@ export type Snapshot = { | |||
discountLoan: number | |||
} | |||
|
|||
export type PoolPrice = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't delete these as they have to be exported for package users (like Curve Monitor). Prob best to exclude this package from the automated tools?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What are these types for? They aren't used anywhere
@@ -10,7 +10,7 @@ import styled, { css } from 'styled-components' | |||
import { isInProgress, taskStepStatusStyles } from './helpers' | |||
import Button from 'ui/src/Button' | |||
import Spinner from 'ui/src/Spinner/Spinner' | |||
import StepModal from 'ui/src/Stepper/StepModal' | |||
import { StepModal } from 'ui/src/Stepper' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huh, how did your tool not see import * as React from 'react'
which can be removed as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import * is tricky to detect, I guess. I'll convert those imports.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This opened a whole can of worms, sorry for the large diff 💀